<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>css3过渡</title>
    <link rel="stylesheet" href="../../lib/bootstrap3/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../lib/bootstrap3/css/dashboard.css">
    <script src="../../lib/angularjs/angular.js"></script>
</head>
<style>
    .fade-in {
        transition: 2s linear all;
        -webkit-transition: 2s linear all;
    }
    .fade-in:hover {
        width: 100%;
        height: 100px;
    }
    .fade-in.ng-enter {
        opacity: 0;
    }
    .fade-in.ng-enter.ng-enter-active {
        opacity: 1;
    }
    .pbox{
        height:150px !important;padding:5px;
    }
    .box{
        width:50px;height:50px;
    }
</style>
<body>
<div class="panel panel-primary">
    <div class="panel-heading">鼠标经过时触发</div>
    <div class="panel-body">
        <div class="pbox">
            <div class="fade-in bg-success box"></div>
        </div>
    </div>
    <div class="panel-footer">
        transition：用于设置四个转换属性的简写形式
        transition-delay：指定过渡效果何时开始
        transition-duration：指定完成过渡所需要的秒数或毫秒数
        transition-property：指定转换所用的css属性名称
        transition-timing-function：指定过渡所属的速度曲线
    </div>
</div>
</body>
</html>